package com.rj.bd.qz;

import com.rj.bd.utils.solrUtil;

import java.util.Date;

/**
 * @author FTY
 * @desc
 * @time 2021-05-07-16:40
 */
public class SolrREUpdateJob {

    public void work(){
        System.out.println("开始更新solr索引库:" + new Date());
        //更新索引
        solrUtil.sendPost(
                "http://localhost:8089/solr/collection1/dataimport?command=full-import&clean=true&commit=true&wt=json&indent=true&entity=solr_yhxq&verbose=false&optimize=false&debug=false",
                "key=123&v=456");
        
    }

}
